"""
#!!===========================================================
#版权（C）2023, Huawei Technologies Co., HUTAF xDevice
#!!===========================================================
#文 件 名:      SecurityUserIamCommon
#文件说明:      useriam相关公共AW
#作   者:
#生成日期:
#!!===========================================================
"""

# -*- coding: utf-8 -*-
from devicetest.aw.OpenHarmony import CommonOH
from devicetest.core.test_case import keyword


@keyword
def enterPinSetting(oh_device):
    """
    #======================================================================
    #   @Method:
    #   @Precondition:
    #   @Func:
    #   @Param:
    #   @Param:
    #   @Example:
    #======================================================================
    """
    CommonOH.forceStopAbility(oh_device, "com.ohos.settings")
    # CommonOH.startAbility(oh_device, "com.huawei.hmos.settings.MainAbility", "com.huawei.hmos.settings")
    CommonOH.startAbility(oh_device, "com.ohos.settings.MainAbility", "com.ohos.settings")
    CommonOH.touchByText(oh_device, text="生物识别和密码")
